package cn.sumpu.app.coolsk.web.mvc.front;


import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.sumpu.app.coolsk.exception.AppBusinessException;
@Controller
public class SessionController {
	@RequestMapping(value = "/sessionTimeout.htm")
	public String sessionTimeout(HttpServletRequest request,
			HttpServletResponse response) throws AppBusinessException {
		try {
			response.sendRedirect("login.htm");
		} catch (IOException e) {
			e.printStackTrace();
			return "v1/common/error";
		}
		return null;
	}
}
